﻿<UserControl x:Class="MachineQA.EnergiesTab"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="1200" d:DesignWidth="1240" Loaded="UserControl_Loaded">
    <StackPanel Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1240" Height="1200">
        <StackPanel Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top">
            <GroupBox Header="Existing Energies" Width="230" Height="535">
                <StackPanel Orientation="Vertical">
                    <ListBox Name="EnergiesListbox" Height="400" VerticalAlignment="Top"/>
                    <Label Name="NewLabel" Content="New item details:"/>
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                        <StackPanel Orientation="Vertical" VerticalAlignment="Center">
                            <Label Name="ModalityLabel" Content="modality: " HorizontalAlignment="Right"/>
                            <Label Name="EnergyNameLabel" Content="Energy name: " HorizontalAlignment="Right" />
                        </StackPanel>
                        <StackPanel Orientation="Vertical" VerticalAlignment="Top">
                            <ComboBox Name="ModalityComboBox" ItemsSource="{Binding}" Width="130" SelectionChanged="ModalityComboBox_SelectionChanged" />
                            <TextBox Name="NewEnergyNameBox" Width="50" TextChanged="NewEnergyNameBox_TextChanged" HorizontalAlignment="Left" />
                        </StackPanel>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                    </StackPanel>
                    <Button Name="EnergySaveButton" Content="Create Energy" IsEnabled="false" Height="40"  Width="100" HorizontalAlignment="Right" Click="EnergySaveButton_Click" />
                </StackPanel>
            </GroupBox>
        </StackPanel>
    </StackPanel>
</UserControl>